package io.gitee.zhucan123.core.infrastructure;


import com.alibaba.fastjson.JSON;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;

@RunWith(SpringRunner.class)
@ActiveProfiles(value = "zc")
@SpringBootTest
@AutoConfigureMockMvc
public abstract class AbstractTest {

  protected Logger logger = LoggerFactory.getLogger(this.getClass());

  @Autowired
  protected MockMvc mockMvc;

  @Test
  public void contextLoads() {
  }

  protected String parseJson(Object o) {
    return JSON.toJSONString(o);
  }


}
